home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / animTests / bezier_position_box.s3d < prev    next >
Text File  |  2000-06-17  |  4KB  |  120 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     translation -100 0 100
  10.     children [
  11.         Shape {
  12.             appearance [
  13.                 MultiAppearance {
  14.                     material Material {
  15.                         diffuseColor 0.6039 0.6039 0.898
  16.                     }
  17.                 }
  18.             ]
  19.             geometry MultiMesh {
  20.                 coord DEF Box01-COORD Coordinate {
  21.                     point [
  22.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  23.                     ]
  24.                 }
  25.                 coordIndex [
  26.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  27.                     2 0 4 -1 4 6 2 -1
  28.                 ]
  29.                 smoothingIndex [
  30.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  31.                 ]
  32.                 appearanceIndex [
  33.                     1 1 0 0 4 4 3 3 5 5 2 2
  34.                 ]
  35.                 textureMappings [
  36.                 ]
  37.             }
  38.         }
  39.         DEF Box01-BEZPOS-INTERP BezierVecInterpolator {
  40.             key [
  41.                 0 0.5 1
  42.             ]
  43.             keyValue [
  44.                 -100 0 100 -133.3 0 0.04793 -133.3 0 -66.68 -100 0 -100 
  45.                 -100 0 -100 -66.69 0 -133.3 -0.008312 0 -133.3 100 0 -100
  46.             ]
  47.         }
  48.         ROUTE world-TIMER.fraction_changed TO Box01-BEZPOS-INTERP.set_fraction
  49.         ROUTE Box01-BEZPOS-INTERP.value_changed TO Box01.set_translation
  50.     ]
  51. }
  52. DEF Camera01 Viewpoint{
  53.     position 2.983 113.4 362.3
  54.     orientation 0.9614 -0.2725 -0.03926 -0.2975
  55.     fieldOfView 0.6024
  56.     description "Camera01"
  57. }
  58. DEF Camera01.Target Transform {
  59.     translation -28.44 0 -21.85
  60.     children [
  61.     ]
  62. }
  63.  
  64.  
  65. DEF SampledBox01 Transform {
  66.     translation -100 0 100
  67.     children [
  68.         Shape {
  69.             appearance Appearance {
  70.                 material Material {
  71.                     emissiveColor 1 0 0
  72.                 }
  73.             }
  74.             geometry IndexedLineSet {
  75.                 coord DEF SampledBox01-COORD Coordinate {
  76.                     point [
  77.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  78.                     ]
  79.                 }
  80.                 coordIndex [
  81.                     0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  82.                     2 0 4 -2 4 6 2 -2
  83.                 ]
  84.             }
  85.         }
  86.         DEF SampledBox01-POS-INTERP PositionInterpolator {
  87.             key [
  88.                 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14 0.15 0.16 0.17
  89.                 0.18 0.19 0.2 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.3 0.31 0.32 0.33 0.34
  90.                 0.35 0.36 0.37 0.38 0.39 0.4 0.41 0.42 0.43 0.44 0.45 0.46 0.47 0.48 0.49 0.5 0.51
  91.                 0.52 0.53 0.54 0.55 0.56 0.57 0.58 0.59 0.6 0.61 0.62 0.63 0.64 0.65 0.66 0.67 0.68
  92.                 0.69 0.7 0.71 0.72 0.73 0.74 0.75 0.76 0.77 0.78 0.79 0.8 0.81 0.82 0.83 0.84 0.85
  93.                 0.86 0.87 0.88 0.89 0.9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1
  94.             ]
  95.             keyValue [
  96.                 -100 0 100 -102 0 94.04
  97.                 -103.8 0 88.16 -105.6 0 82.36 -107.4 0 76.64 -109 0 71 -110.6 0 65.44 -112 0 59.96
  98.                 -113.4 0 54.56 -114.8 0 49.24 -116 0 44 -117.2 0 38.84 -118.2 0 33.76 -119.2 0 28.76
  99.                 -120.2 0 23.84 -121 0 19 -121.8 0 14.24 -122.4 0 9.56 -123 0 4.96 -123.6 0 0.44 -124 0 -4
  100.                 -124.4 0 -8.36 -124.6 0 -12.64 -124.8 0 -16.84 -125 0 -20.96 -125 0 -25 -125 0 -28.96
  101.                 -124.8 0 -32.84 -124.6 0 -36.64 -124.4 0 -40.36 -124 0 -44 -123.6 0 -47.56 -123 0 -51.04
  102.                 -122.4 0 -54.44 -121.8 0 -57.76 -121 0 -61 -120.2 0 -64.16 -119.2 0 -67.24 -118.2 0 -70.24
  103.                 -117.2 0 -73.16 -116 0 -76 -114.8 0 -78.76 -113.4 0 -81.44 -112 0 -84.04 -110.6 0 -86.56
  104.                 -109 0 -89 -107.4 0 -91.36 -105.6 0 -93.64 -103.8 0 -95.84 -102 0 -97.96 -100 0 -100
  105.                 -97.96 0 -102 -95.84 0 -103.8 -93.64 0 -105.6 -91.36 0 -107.4 -89 0 -109 -86.56 0 -110.6
  106.                 -84.04 0 -112 -81.44 0 -113.4 -78.76 0 -114.8 -76 0 -116 -73.16 0 -117.2 -70.24 0 -118.2
  107.                 -67.24 0 -119.2 -64.16 0 -120.2 -61 0 -121 -57.76 0 -121.8 -54.44 0 -122.4 -51.04 0 -123
  108.                 -47.56 0 -123.6 -44 0 -124 -40.36 0 -124.4 -36.64 0 -124.6 -32.84 0 -124.8 -28.96 0 -125
  109.                 -25 0 -125 -20.96 0 -125 -16.84 0 -124.8 -12.64 0 -124.6 -8.36 0 -124.4 -4 0 -124
  110.                 0.44 0 -123.6 4.96 0 -123 9.56 0 -122.4 14.24 0 -121.8 19 0 -121 23.84 0 -120.2 28.76 0 -119.2
  111.                 33.76 0 -118.2 38.84 0 -117.2 44 0 -116 49.24 0 -114.8 54.56 0 -113.4 59.96 0 -112
  112.                 65.44 0 -110.6 71 0 -109 76.64 0 -107.4 82.36 0 -105.6 88.16 0 -103.8 94.04 0 -102
  113.                 100 0 -100
  114.             ]
  115.         }
  116.         ROUTE world-TIMER.fraction_changed TO SampledBox01-POS-INTERP.set_fraction
  117.         ROUTE SampledBox01-POS-INTERP.value_changed TO SampledBox01.set_translation
  118.     ]
  119. }
  120.